<%@ page import="org.apache.commons.lang.StringUtils"%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="../../common/init_context.jsp"%>

<script type="text/javascript" src="${ROOT}/static/js/gopay/payChannel.js"></script>
<% 
	String ch = request.getParameter("ch");
	if(StringUtils.isBlank(ch)){
		ch = (String)request.getAttribute("ch");
	}
	request.setAttribute("ch", ch);
%>

<input type="hidden" id="payChannel" name="payChannel" value="${ch }"/>
<input type="hidden" id="defalutPayUserType" name="defalutPayUserType" value="${payWayBean.defalutPayUserType}"/>
				
<ul class="tabsUl fix" id="channelSelLi">
	<li>选择支付方式：</li>
	<c:forEach items="${payWayBean.getPayChannelList() }" var="pcdt">
		<c:if test='${"01" eq pcdt.payChannelType }'>
				<li class="tabsLabel <c:if test='${ch eq pcdt.payChannelType }'>cur</c:if>" id="${pcdt.payChannelLabelId}"  index="${pcdt.payChannelIndex}">${pcdt.payChannelName}</li>
		</c:if>
	</c:forEach>
</ul>

<div class="borderBox-3 tabsContain">
	<c:choose>
		<c:when test="${(payWayBean.hasPayChannel()==false)}">
			没有支付权限或者没有支持的清算渠道
		</c:when>
		<c:otherwise>
			<!-- 网银支付 -->
			<c:if test="${payWayBean.isSupport('01') == true }">
				<jsp:include page="bankPayChannel.jsp"></jsp:include>
			</c:if>
			<!-- 国付宝在线支付 -->
			<c:if test="${payWayBean.isSupport('06') == true }">
				<c:if test="${(order.intTxnCd eq '00100') or (order.intTxnCd eq '00400') or (order.intTxnCd eq '01300') or (order.intTxnCd eq '01302')}">
					<script type="text/javascript" src="${ROOT}/static/js/gopay/gopayChannel.js"></script>
					<shiro:notAuthenticated>
						<jsp:include page="gopayLogin.jsp"></jsp:include>
					</shiro:notAuthenticated>
					
					<shiro:authenticated>
						<jsp:include page="gopayChannel.jsp"></jsp:include>
					</shiro:authenticated>
				</c:if>
			</c:if>
			<%-- <!-- 信用卡快捷支付 -->
			<c:if test="${payWayBean.isSupport('07') == true }">
				<jsp:include page="expressPayChannel.jsp"></jsp:include>
			</c:if>
            <!-- 借记卡快捷支付 -->
			<c:if test="${payWayBean.isSupport('08') == true }">

			</c:if> --%>
		</c:otherwise>
	</c:choose>
</div>
